//package com.aiti.lulian.controller;
//
//import cn.hutool.core.util.StrUtil;
//import com.aiti.base.core.base.controller.WebController;
//import com.aiti.base.core.utils.message.Message;
//import com.aiti.base.core.utils.stringUtil.StringUtil;
//import com.aiti.lulian.constant.NotificationConstant;
//import com.aiti.lulian.entity.LatestDealNews;
//import com.aiti.lulian.entity.LuLianSupplierSignUp;
//import com.aiti.lulian.entity.ShowSupplierSignUpFile;
//import com.aiti.lulian.service.*;
//import com.aiti.lulian.utils.NotificationUtils;
//import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//import javax.annotation.Resource;
//import java.util.List;
//
//@RestController
//@RequestMapping("/latest/deal/news")
//public class LatestDealNewsController extends WebController {
//
//    @Autowired
//    private LatestDealNewsService latestDealNewsService;
//
//
//
//    @PostMapping
//    public Message save(@RequestBody LatestDealNews latestDealNews) {
//        return latestDealNewsService.saveLatestDealNews(latestDealNews);
//    }
//
//
//    @GetMapping("/page")
//    public Message page(@RequestParam("pageNum") Integer pageNum,
//                                       @RequestParam("pageSize") Integer pageSize,
//                                       LatestDealNews latestDealNews) {
//        if (pageNum == null || pageSize == null) {
//            logger.error("查询异常：===》入参异常");
//            return Message.fail("入参异常");
//        }
//        Page<LuLianSupplierSignUp> page = startPage(pageNum, pageSize);
//        return latestDealNewsService.dealPage(page, latestDealNews);
//    }
//
//    @GetMapping("/detail")
//    public Message detail(@RequestParam("baseId") String baseId) {
//        return latestDealNewsService.detail(baseId);
//    }
//
//    @DeleteMapping
//    public Message delete(@RequestParam("baseId") String baseId) {
//        return latestDealNewsService.deleteDeal(baseId);
//    }
//
//}